//
// Created by mongobaba on 2021/6/8.
//

#include "json_validator.h"
#include <iostream>

// 使用示例
void use_json_validator() {
    const char* str = R"({"name":"name", "age":10})";
    if (json_validator::validate(str)) {
        std::cout << "valid" << std::endl;
    }
    std::string json(str);
    if (json_validator::validate(json)) {
        std::cout << "valid" << std::endl;
    }
}
